// cate 获取文章分类的接口

import ins from '@/utils/request.js'

// 获取请求文章分类数据的接口

export const artAPI = () => {
  return ins({
    method: 'get',
    url: '/my/cate/list'
  })
}

// 新增文章分类

export const artaddAPI = (obj) => {
  return ins({
    method: 'post',
    url: '/my/cate/add',
    data: { ...obj }
  })
}

// 修改网站列表
export const artupdAPI = (obj) => {
  return ins({
    method: 'put',
    url: '/my/cate/info',
    data: { ...obj }
  })
}

// 删除

export const artdadAPI = (stx) => {
  return ins({
    method: 'DELETE',
    url: '/my/cate/del',
    params: { id: stx }
  })
}
